package com.xlhj.yucloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xlhj.yucloud.entity.SysUserRole;

/**
 * @author: liucaijing
 * @description: SysUserRoleService
 * @date: 2021/10/10 9:56
 */
public interface SysUserRoleService extends IService<SysUserRole> {

    /**
     * 批量保持用户角色关联信息
     * @param userId
     * @param roleIds
     * @return
     */
    boolean saveBatchUserRole(Long userId, Long[] roleIds);

    /**
     * 根据用户ID删除用户角色关联信息
     * @param userId
     */
    void removeByUserId(Long userId);

    /**
     * 根据用户ID组删除用户角色关系信息
     * @param userIds
     */
    void removeByUserIds(Long[] userIds);
}
